#ifndef EQUIPMENTSHOP_H
#define EQUIPMENTSHOP_H
#include<QLabel>
#include <QMainWindow>
#include <QObject>
#include <QWidget>
#include<QPushButton>
#include<qpainter.h>
#include<QKeyEvent>
#include<qstring.h>
#include"menu.h"
#include<QTimer>
namespace Ui {
class menu;
}

class Equipmentshop:public QWidget
{
    Q_OBJECT
public:
   explicit Equipmentshop();
    explicit Equipmentshop(int moneynumber,bool shengmustore1);
    void paintEvent(QPaintEvent*event);
    menu *menu1;
    int money;
    void startrealgame();//开始游戏
    void increaseshengmu();//增加仓库圣母数量
    void increasetakeawayshengmu();//增加带走圣木
    void  reducetakeawayshengmu();
    int shengmustore;//仓库里的圣木数量
    //int money;//钱
    int takeawayshengmu;//带走的圣木数量
   // ~Equipmentshop();
private:
    Ui::menu *ui;
    void keyPressEvent(QKeyEvent *key);
    QPushButton *startRealgameButton;//开始游戏
   // MainWindow *ui_mainwindow;
    QPushButton *buyshengmu;//买圣木
    QPushButton *B_increasetakeawayshengmu;//增加带走圣木
    QPushButton *B_reducetakeawayshengmu;//减少带走圣木
    QTimer *timer1;
signals:
    void sendsignal();
private slots:
    void Equipmentshop_update();
};

#endif // EQUIPMENTSHOP_H
